<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>card卡片效果2</title>
  <style>
    html,
    body {
      background: #e8e8e8;
      margin: 50px;
    }
    /* From Uiverse.io by kamehame-ha */
    .cards {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .cards .red {
      background-color: #f43f5e;
    }

    .cards .blue {
      background-color: #3b82f6;
    }

    .cards .green {
      background-color: #22c55e;
    }

    .cards .card {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      text-align: center;
      height: 100px;
      width: 250px;
      border-radius: 10px;
      color: white;
      cursor: pointer;
      transition: 400ms;
    }

    .cards .card p.tip {
      font-size: 1em;
      font-weight: 700;
    }

    .cards .card p.second-text {
      font-size: .7em;
    }

    .cards .card:hover {
      transform: scale(1.1, 1.1);
    }

    .cards:hover>.card:not(:hover) {
      filter: blur(10px);
      transform: scale(0.9, 0.9);
    }
  </style>
</head>

<body>
  <!-- From Uiverse.io by kamehame-ha -->
  <div class="cards">
    <div class="card red">
      <p class="tip">Hover Me</p>
      <p class="second-text">Lorem Ipsum</p>
    </div>
    <div class="card blue">
      <p class="tip">Hover Me</p>
      <p class="second-text">Lorem Ipsum</p>
    </div>
    <div class="card green">
      <p class="tip">Hover Me</p>
      <p class="second-text">Lorem Ipsum</p>
    </div>
  </div>
</body>

</html>